package SimpleFactory;

public class Client {
    public static void main(String[] args) {
        Car car = Factory.getCar("特斯拉");
        System.out.println(car.name);

        Car car1 = Factory.getCar("五菱");
        System.out.println(car1.name);
    }
}
